package com.huawei.hms.support.api.entity.hwid;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.util.ArrayList;

public class ShippingAddressParcelable implements Parcelable {
    public static final Creator<ShippingAddressParcelable> CREATOR = new Creator<ShippingAddressParcelable>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return a(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return a(i);
        }

        public ShippingAddressParcelable a(Parcel parcel) {
            return new ShippingAddressParcelable(parcel);
        }

        public ShippingAddressParcelable[] a(int i) {
            return new ShippingAddressParcelable[i];
        }
    };
    private ArrayList<ShippingAddressInfo> a;

    protected ShippingAddressParcelable(Parcel parcel) {
        this.a = parcel.createTypedArrayList(ShippingAddressInfo.CREATOR);
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeTypedList(this.a);
    }

    public int describeContents() {
        return 0;
    }

    public ArrayList<ShippingAddressInfo> getShippingAddressInfoList() {
        return this.a;
    }

    public void setShippingAddressInfoList(ArrayList<ShippingAddressInfo> arrayList) {
        this.a = arrayList;
    }
}
